15-112 Fundamentals of Programming

Homework 5.2


For this homework, there is no starter file. You have to create your own .py file and submit it to Autolab. You can take a previous starter file and modify it appropriately.

  • Please add your name, Andrew id, and section at the top of the file.
  • APPLY TOP-DOWN DESIGN, USE LOTS OF HELPER FUNCTIONS.
  • Parts of this homework will be manually graded.
  • You will be graded on style. You can lose up to 10 poins for style (out of 100 points). Please see here for the style rubric.
  • You may make up to 4 Autolab submissions. As usual, only your last one counts.

  • Questions

    1. Attend 2 TP lectures [40pts] [manually graded]

    As you prepare to start your term projects, our TAs have volunteered to hold a few lectures that we think will be super beneficial for your term projects. We will be teaching you a few important skills that may come in handy when working on your term projects, such as image processing, working with user input(dialog boxes, buttons, etc.), 3d graphics with Tkinter, etc. We are offering 5 such sessions:

    Topic Time Location
    User input & tkinter Friday 7:00 pm - 8:00 pm GHC 4215
    PIL/Image Processing Friday 8:00 pm - 9:00 pm GHC 4215
    AI and Backtracking Saturday 11:00 am - 12:00 pm GHC 4215
    Monte Carlo/Markov Chains Saturday 12:00 pm - 1:00 pm GHC 4215
    3D in tkinter Saturday 1:00 pm - 2:00 pm GHC 4215

    You are required to attend 2 of these lectures (though we highly encourage you to attend all the others that you think will be useful for your term project).

    2. findLargestFile(path) [30 pts][autograded]

    See question 2 from here.

    3. flatten(L) [30 pts][autograded]

    See question 3 from here.

    Valid CSS! Valid XHTML 1.0 Strict